let vue=new Vue({
    el:'.main-content',
    data:{
        result:{},
        quaCondition:{}
    },
    methods:{
        select:function (pageNum,pageSize) {
            axios({
                url:`qualification/select/${pageNum}/${pageSize}`,
                method:'post',
                data:this.quaCondition
            }).then(rs=>{
                this.result=rs.data.obj;
                this.quaCondition={}
            }).catch(error=>{
                layer.msg(error.message)
            })
        },
        toUpdate:function (id) {
            layer.id=id;
            layer.message='';
            layer.open({
                type:2,
                title:false,
                area:['80%','80%'],
                content:"qualification/toUpdate",
                end:()=>{
                    if (layer.message != '') {
                    layer.msg("更新成功");
                    this.select(1,4)
                    }
                }
            })
        }
    },
    created:function () {
        this.select(1,4)
    }
});